package hhm.javamode.strategy.pay;

import hhm.javamode.strategy.pay.type.BusiAcctStrategy;
import hhm.javamode.strategy.pay.type.EBankStrategy;
import hhm.javamode.strategy.pay.type.MobileStrategy;

public class Client {
	public static void main(String[] args) {

		Context context = new Context();
		// 网银充值100 需要付多少
		Double money = context.calRecharge(100D, EBankStrategy.class);
		System.out.println(money);

		// 商户账户充值100 需要付多少
		Double money2 = context.calRecharge(100D, BusiAcctStrategy.class);
		System.out.println(money2);

		// 手机充值100 需要付多少
		Double money3 = context.calRecharge(100D, EBankStrategy.class);
		System.out.println(money3);

		// 充值卡充值100 需要付多少
		Double money4 = context.calRecharge(100D, MobileStrategy.class);
		System.out.println(money4);
	}
}
